//
//  SortDetailModel.m
//  项目
//
//  Created by 关雷 on 15-1-8.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "SortDetailModel.h"

@implementation SortDetailModel
- (void)dealloc
{
    [_pic release];
    [_title release];
    [_userinfo release];
    [_addtime_f release];
    [_content release];
    [_webview_url release];
    [_contentid release];
    [super dealloc];
}
- (instancetype)initWithPic:(NSString *)pic title:(NSString *)title userinfo:(NSDictionary *)userinfo content:(NSString *)content webview_url:(NSString *)webview_url contentid:(NSString *)contentid addtime:(NSDictionary *)addtime viewnum:(NSInteger)viewnum readtime:(NSInteger)readtime
{
    self = [super init];
    if (self) {
        self.userinfo = [NSDictionary dictionaryWithDictionary:userinfo];
        self.addtime_f = [NSDictionary dictionaryWithDictionary:addtime];
        self.pic = pic;
        self.title = title;
        self.content = content;
        self.webview_url = webview_url;
        self.contentid = contentid;
        self.viewnum = viewnum;
        self.readtime = readtime;
    }
    return self;
}

+ (id)SortDetailModelWithPic:(NSString *)pic title:(NSString *)title userinfo:(NSDictionary *)userinfo content:(NSString *)content webview_url:(NSString *)webview_url contentid:(NSString *)contentid addtime:(NSDictionary *)addtime viewnum:(NSInteger)viewnum readtime:(NSInteger)readtime
{
    SortDetailModel * sortM = [[SortDetailModel alloc] initWithPic:pic title:title userinfo:userinfo content:content webview_url:webview_url contentid:contentid addtime:addtime viewnum:viewnum readtime:readtime];
    return [sortM autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}

@end
